package com.otitan.la.forest.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 修改密码记录表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-09 14:13:27
 */
@Data
@NoArgsConstructor
@TableName("\"SYS_EDIT_PWD_RECORD\"")
@ApiModel("修改密码记录表实体")
public class EditPwdRecordEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public EditPwdRecordEntity(String userId, String password) {
        this.userId = userId;
        this.password = password;
    }

    /**
    * 主键
    */
    @ApiModelProperty(value = "主键", required = false)
    @TableId("\"ID\"")
    private String id;

    /**
    * 用户ID
    */
    @ApiModelProperty(value = "用户ID", required = false)
    // @NotEmpty(message = "用户ID不能为空")
    // @Length(max = 36, message = "用户ID不能超过 36 个字符")
    @TableField("\"USER_ID\"")
    private String userId;

    /**
    * 历史密码
    */
    @ApiModelProperty(value = "历史密码", required = false)
    // @NotEmpty(message = "历史密码不能为空")
    // @Length(max = 32, message = "历史密码不能超过 32 个字符")
    @TableField("\"PASSWORD\"")
    private String password;

    /**
    * 创建用户
    */
    @ApiModelProperty(value = "创建用户", required = false)
    @TableField(value = "\"CREATE_USER\"", fill = FieldFill.INSERT)
    private String createUser;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField(value = "\"CREATE_DATE\"", fill = FieldFill.INSERT)
    private Date createDate;


}
